package com.itheima_12;

import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List;

import java.util.HashMap;

public class test_12_5 {
    public static void main(String[] args) {
        HashMap<String,String> h=new HashMap();
        h.put("1","yi");
        h.put("2","er");
        h.put("3","san");
        System.out.println(h.containsKey("2"));
        System.out.println(h.containsValue("er"));
        System.out.println(h.remove("1"));
        System.out.println(h.isEmpty());
        h.clear();
        System.out.println(h.size());
    }
}
